package com.tm.mapper;

import com.tm.model.SpSkuInfo;
import com.tm.model.SpSkuInfoCriteria;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface SpSkuInfoMapper {
    int countByExample(SpSkuInfoCriteria example);

    int deleteByExample(SpSkuInfoCriteria example);

    int deleteByPrimaryKey(Integer skuId);

    int insert(SpSkuInfo record);

    int insertSelective(SpSkuInfo record);

    List<SpSkuInfo> selectByExampleWithBLOBs(SpSkuInfoCriteria example);

    List<SpSkuInfo> selectByExample(SpSkuInfoCriteria example);

    SpSkuInfo selectByPrimaryKey(Integer skuId);

    int updateByExampleSelective(@Param("record") SpSkuInfo record, @Param("example") SpSkuInfoCriteria example);

    int updateByExampleWithBLOBs(@Param("record") SpSkuInfo record, @Param("example") SpSkuInfoCriteria example);

    int updateByExample(@Param("record") SpSkuInfo record, @Param("example") SpSkuInfoCriteria example);

    int updateByPrimaryKeySelective(SpSkuInfo record);

    int updateByPrimaryKeyWithBLOBs(SpSkuInfo record);

    int updateByPrimaryKey(SpSkuInfo record);

	List<Map<String, Object>> getRecommendSkuListForIndex(Map<String, Object> param);

	List<Map<String, Object>> getSkuListByTypeIdWithPage(Map<String, Object> param);

	List<Map<String, Object>> getSkuPicBySkuId(Integer skuId);

	List<Map<String, Object>> getSpSkuTagListBySkuId(Integer skuId);

	int countSpSkuCollect(Map<String, Object> param);

	int deleteSpSkuCollect(Map<String, Object> param);

	int addSpSkuCollect(Map<String, Object> param);

	List<Map<String, Object>> getShopCartByMemberId(Integer memberId);

	int batchDelShopCartDetail(List<Integer> detailIds);

	int updateShopCartDetail(Map<String, Object> param);

	Map<String, Object> getCardByMemberId(Integer memberId);

	int addMemberShopCart(Map<String, Object> cart);

	int countSkuShopCart(Map<String, Object> param);

	int updatekuShopCart(Map<String, Object> param);

	int addkuShopCart(Map<String, Object> param);

	int getGwcCntByMemberId(Integer memberId);

	List<Map<String, Object>> getShopCartPaySkuInfo(List<Integer> detailIds);

	int addSpSpellGroupParticipate(Map<String, Object> param);

	List<Map<String, Object>> getCollectListByMemberIdWithPage(Map<String, Object> param);

	List<Map<String, Object>> getSkuListByOrderId(Object object);

	int batchUpdateAmount(List<Map<String, Object>> list);

	List<Map<String, Object>> getSpSpellGroupParticipate(Map<String, Object> param);

	List<Map<String, Object>> getSkuListByKeywordWithPage(Map<String, Object> param);
}